package org.garbagecan.quartzstudy.listener;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class MyJobProxy implements Job {
	private MyJob job = null;
	public void execute(JobExecutionContext context) throws JobExecutionException {
		JobDataMap jobDataMap = context.getJobDetail().getJobDataMap();
		this.job = (MyJob)jobDataMap.get("myjob");
		this.job.execute();
	}

}
